package rozetka.pageObjects;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class OrderView {

	WebDriver driver;
	private static final By orderButton = By
			.xpath("/html/body/div/div[3]/div/div/div/div/div/div/div/div/div[3]/div[2]/div/div[2]/form/button");

	public OrderView(WebDriver driver) {

		this.driver = driver;
	}

	public void createOrder() {
		driver.findElement(orderButton).submit();
	}

}
